//
//  AesEncrypt.h
//  GameLaLaWork
//
//  Created by gamelala on 14-8-1.
//  Copyright (c) 2014年 gamelala. All rights reserved.
//

#pragma once

#include <iostream>

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "aesEncrypt.h"
#include "aes.h"

#import <Foundation/Foundation.h>

#import "NSData+Base64.h"

using namespace std;

class AesEncrypt
{
    
public:
    
    static void copyData(uint8 *des,const uint8* src, int32 len);
    static uint32 getDataLen(const char* buf,int32 bufLen);
    static unsigned char* encryptAES(const char* key, int keyLen, BYTE input[],int size);//size 是input数组长度
    static unsigned char* decryptAES(const char* key, int keyLen, BYTE input[],int size,int *outLen);
    
};


@interface AesEncrypt_IOS : NSObject

+(NSString*)encryptAESAndBase64:(const char* )key  ipunt:(BYTE*) input ;
+(NSString*)DecCodebase64decryptAES:(const char* )key input:(NSString *)input;

@end

